export const rules = {

}

export interface InvalidForm {
  assetObjIDs: string[]
  remark: ''
}

export function useInitForm(): { formData: Ref<InvalidForm>, initForm: () => void } {
  const getData = (): InvalidForm => ({
    assetObjIDs: [],
    remark: '',
  })
  const formData = ref<InvalidForm>(getData())

  const initForm = () => {
    formData.value = getData()
  }

  return { formData, initForm }
}
